<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">-->
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/edit.css">
</head>
<body>
<div id="div_container">
    <div id="div_fruit_list">
        <form th:action="@{/fruit.do}" method="post">
        <table id="tbl_fruit" th:object="${fruit}">
            <input type="hidden" name="operate" value="update" />
            <input type="hidden" name="fid" th:value="*{fid}">
            <tr>
                <th class="w20">名称</th>
                <td><input type="text" name="fname" th:value="*{fname}"></td>
            </tr>
            <tr>
                <th class="w20">单价</th>
                <td><input type="text" name="price" th:value="*{price}"></td>
            </tr>
            <tr>
                <th class="w20">库存</th>
                <td><input type="text" name="fcount" th:value="*{fcount}"></td>
            </tr>
            <tr>
                <th class="w20">备注</th>
                <td><input type="text" name="remark" th:value="*{remark}"></td>
            </tr>
                <th colspan="2">
                    <input type="submit" value="修改">
                </th>
            </tr>
        </table>
        </form>
    </div>
</div>
</body>
</html>